<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div th:include="~{main/index :: nav}"></div>
<h4>我的课程： 我所在班级的课程表及任课教师</h4>
<table class="table table-hover table-striped  table-bordered" border="1" width="60%" style="background-color: #ebf2f1">
    <tr>
        <th>教师ID</th>
        <th>教师名称</th>
        <th>班级编号</th>
        <th>班级名称</th>
        <th>课程号</th>
        <th>课程名称</th>
    </tr>

    <tr th:each="t:${taskInfos}">
        <td th:text="${t.tid}"></td>
        <td th:text="${t.uname}"></td>
        <td th:text="${t.clz.clzno}"></td>
        <td th:text="${t.clz.clzname}"></td>
        <td th:text="${t.course.cno}"></td>
        <td th:text="${t.course.cname}"></td>
    </tr>
</table>
<h3 th:if="${taskInfos == null}" style="color: red">您的班级并未开设课程，请等待通知!!!</h3>
<hr>
</body>
</html>